package com.village.zpark.service;

import com.github.pagehelper.PageInfo;
import com.village.zpark.pojo.VillageInfo;

import java.util.List;

public interface VillageInfoService {
    /**
     * 查询所有
     */
    public List<VillageInfo> findAll();

    /**
     *根据id查询
     */
    public VillageInfo findById(Integer id);

    /**
     * 新增一条乡村信息
     */
    public int addVillageInfo(VillageInfo villageInfo);

    /**
     * 修改乡村信息
     */
    public int updateVillageInfo(VillageInfo villageInfo);

    /**
     * 删除一条乡村信息
     */
    public int deleteVillageInfoById(Integer id);

    /**
     * 分页查询
     */
    public PageInfo<VillageInfo> findPage(int page, int size, String param );
}
